<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@taglib uri="http://java.fckeditor.net" prefix="FCK" %>

<div>
    <logic:present name="acc">
        <p align="right">
            <a href="AdminCar.do?action=listCar" >Car manager</a>&emsp;&emsp;&emsp;
                <a href="AdminCar.do?action=listCarModel" >Model manager</a> &emsp;&emsp;&emsp;
                <a href="AdminCar.do?action=listCarType">Type manager</a>
        </p>
        <form name="fr" action="AdminCar.do" method="post" >
            <table width="100%" align="center">
                <tbody>
                    <tr>
                        <td>
                            <table class="tablemain" border="0">
                                <tr >
                                    <th height="32" colspan="3" scope="col">Manager Car </th>
                                </tr>
                                <tr>
                                    <td height="39"><div align="right">CarId : </div></td>
                                    <td colspan="2"><input type="text" readonly name="carId" id="id" value="${carDTO.detailDTO.carId}" /></td>
                                </tr>
                                <tr>
                                    <td height="39"><div align="right">CarName : </div></td>
                                    <td colspan="2">${carDTO.carName}</td>
                                </tr>
                                <tr>
                                    <td height="39"><div align="right">Details : </div></td>
                                    <td colspan="2">
                                        ${carDTO.detail}
                                    </td>
                                </tr>
                                <tr>
                                    <td height="39"><div align="right">Model name : </div></td>
                                    <td colspan="2">
                                        ${carDTO.modelDTO.modelName}
                                    </td>
                                </tr>
                                <tr>
                                    <td height="39"><div align="right">Type name : </div></td>
                                    <td colspan="2">
                                        ${carDTO.typeDTO.typeName}
                                    </td>
                                </tr>
                                <tr>
                                    <td height="39"><div align="right">AirConditional : </div></td>
                                    <td colspan="2">
                                        <c:if test="${carDTO.airConditional == 1}">
                                            Yes
                                        </c:if>
                                        <c:if test="${carDTO.airConditional == 0}">
                                            No
                                        </c:if>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="39"><div align="right">Quantity: </div></td>
                                    <td colspan="2">${carDTO.quantity}</td>
                                </tr>
                                <tr>
                                    <td height="39"><div align="right">SeatQty: </div></td>
                                    <td colspan="2">${carDTO.seatQty}</td>
                                </tr>
                                <tr>
                                    <td height="39"><div align="right">Price : </div></td>
                                    <td colspan="2">${carDTO.price}</td>
                                </tr>

                                <tr>
                                    <td height="39" colspan="3"><div align="center">
                                            <input type="submit" name="action" value="DeleteCar"/>
                                        </div></td>
                                </tr>

                            </table>
                        </td>
                    </tr>
                </tbody>
            </table>
        </form>
    </logic:present>
    <logic:notPresent name="acc">
        <jsp:forward page="adminHome.jsp"/>
    </logic:notPresent>
</div>
